package com.carl.zlds.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author carl
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("customer_service")
public class CustomerService {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("account")
    private String account;

    @TableField("remark")
    private String remark;

    @TableField("game_id")
    private Long gameId;

    @TableField("weight")
    private Integer weight;

    @TableField("create_time")
    private Date createTime;

    @TableField(value = "update_time", update = "now()")
    private Date updateTime;
}
